
//  Extension+UIImageView.swift
//  WeiBo
//
//  Created by 韩菲菲 on 16/8/11.
//  Copyright © 2016年 韩菲菲. All rights reserved.
//

import UIKit

extension UIImageView{

    convenience init(imgName:String){
    
        self.init(image: UIImage(named: imgName))
    }
    
    
    //SDWebImage的封装
    func wb_setImageWithString(urlString:String?, placeholderImageName: String) {
        
        self.sd_setImageWithURL(NSURL(string: urlString ?? ""), placeholderImage: UIImage(named: placeholderImageName))
        
    }


}
